//导入个人模块
const express = require('express')
const T_own = require('../router_handler/T_own')
const { route } = require('./T_question')

const router = express.Router()

//通过用户来返回对应学院和科目(名称)
router.get('/exam/T_own/getall/:user_id', T_own.getAcacademyAndSubjectByUser)
//通过用户来返回对应学院和科目(id)
router.get('/exam/T_own/getallid/:user_id', T_own.getAcacademyAndSubjectidByUser)
//用户添加所在学院（输入邀请码）
router.post('/exam/T_own/createt_useAcademy', T_own.createt_useAcademy)
//添加用户所教学科
router.post('/exam/T_own/MakeUseAndSubject', T_own.MakeUseAndSubject)
//通过学院id来回去科目id和名称
router.get('/exam/T_own/getSubjectsByAcademy/:academy_id', T_own.getSubjectsByAcademy)
//通过用户id来返回所有科目信息
router.get('/exam/T_own/getSubjectsByUse/:user_id', T_own.getALLSubjectsByUse)





module.exports = router
